//
//  DeviceEditView.h
//  Kids
//
//  Created by LiTengFei on 14/11/26.
//  Copyright (c) 2014年 90's Technology Co.Ltd. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "WatchModel.h"
@class DeviceEditView;
@protocol DeviceEditDelegate <NSObject>
-(void)didSelectedEditButtonInDeviceEditView:(DeviceEditView *)editView;
-(void)didSelectedSubmitButtonInDeviceEditView:(DeviceEditView *)editView;
-(void)didSelectedCancelButtonInDeviceEditView:(DeviceEditView *)editView;
@end

@interface DeviceEditView : UIView
@property (nonatomic,strong) WatchModel * model;
@property (nonatomic,weak) id<DeviceEditDelegate> delegate;
@property (nonatomic,strong) UIImage * headerImage;

@property (nonatomic,strong) UITextField * nameTextField;
@property (nonatomic,strong) UITextField * phoneTextField;
@property (nonatomic,strong) UITextField * passwordTextField;

@property (nonatomic,assign) BOOL editer;

-(void)show;
-(void)showInView:(UIViewController *)view;

-(void)dismiss;
@end
